package com.taxshare.operation.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taxshare.operation.entity.TenantEntity;
import com.taxshare.operation.view.dto.ResourceDTO;
import com.taxshare.operation.view.dto.RoleDTO;
import com.taxshare.operation.view.dto.RoleResourceDTO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * @ClassName: TenantMapper
 * @Description:
 * @author luozhongyi
 * @since 2021-02-28
 */
@Mapper
public interface TenantMapper extends BaseMapper<TenantEntity> {
    List<ResourceDTO> queryResources();
    String queryRoleId();
    Integer deleteRoleResourceByRoleId(String roleId);
    Integer insertRoleResourceBatch(List<RoleResourceDTO> roleResourceDTOS);

}
